onEvent('recipes', event => {
    //earth fire air water
    const ele_recipe_list = [
        {
            input: 'minecraft:ender_chest',
            output: 'evilcraft:box_of_eternal_closure',
            element_type: "fire",
            element_amount: 500,
        },
        {
            input: 'evilcraft:piercing_vengeance_focus',
            output: 'evilcraft:vengeance_focus',
            element_type: "fire",
            element_amount: 400,
        },
        {
            input: 'minecraft:ghast_tear',
            output: 'evilcraft:corrupted_tear',
            element_type: "fire",
            element_amount: 400,
        },
        {
            input: 'tconstruct:pickaxe_head',
            output: 'kubejs:stabilizing_unit',
            element_type: "air",
            element_amount: 400,
        },
        {
            input: 'thermal:machine_frame',
            output: 'elementalcraft:pedestal_fire',
            element_type: "fire",
            element_amount: 400,
        },
        {
            input: 'thermal:machine_frame',
            output: 'elementalcraft:pedestal_earth',
            element_type: "earth",
            element_amount: 400,
        },
        {
            input: 'thermal:machine_frame',
            output: 'elementalcraft:pedestal_air',
            element_type: "air",
            element_amount: 400,
        },
        {
            input: 'thermal:machine_frame',
            output: 'elementalcraft:pedestal_water',
            element_type: "water",
            element_amount: 400,
        },
        {
            input: 'elementalcraft:containedcrystal',
            output: 'elementalcraft:firecrystal',
            element_type: "fire",
            element_amount: 400,
        },
        {
            input: 'elementalcraft:containedcrystal',
            output: 'elementalcraft:watercrystal',
            element_type: "water",
            element_amount: 400,
        },
        {
            input: 'elementalcraft:containedcrystal',
            output: 'elementalcraft:aircrystal',
            element_type: "air",
            element_amount: 400,
        },
        {
            input: 'elementalcraft:containedcrystal',
            output: 'elementalcraft:earthcrystal',
            element_type: "earth",
            element_amount: 400,
        },
        {
            input: 'minecraft:skeleton_skull',
            output: 'minecraft:wither_skeleton_skull',
            element_type: "fire",
            element_amount: 2000,

        },
        {
            input: 'create:andesite_alloy',
            output: 'emendatusenigmatica:steel_ingot',
            element_type: "fire",
            element_amount: 2000,

        }
    ]


    //至纯
    const ele_recipe_pureinfusion_list = [
        // {
        //     element_amount: 500,
        //     input1: 'minecraft:bucket',
        //     input2: ['minecraft:stone', 'minecraft:stone', 'minecraft:stone', 'minecraft:stone'],
        //     output: 'manaliquidizer:mana_fluid_bucket',
        // }
    ]

    const ele_recipe_incription_list = [
        {
            "element_type": "fire",
            "element_amount": 1000,
            "slate": { "item": 'bloodmagic:blankslate' },
            "ingredients": [{ "item": 'minecraft:nether_wart' }, { "item": 'evilcraft:promise_acceptor_gold' }, { "item": 'bloodmagic:sulfur' }],
            "output": { "item": "elementalcraft:rune", "nbt": { "elementalcraft": { "rune": "elementalcraft:fus" } }, "count": 1 },
        },
        {
            "element_type": "air",
            "element_amount": 1000,
            "slate": { "item": 'bloodmagic:blankslate' },
            "ingredients": [{ "item": 'astralsorcery:stardust' }, { "item": 'elementalcraft:aircrystal' }, { "item": 'evilcraft:ender_tear' }],
            "output": { "item": "elementalcraft:rune", "nbt": { "elementalcraft": { "rune": "elementalcraft:jita" } }, "count": 1 },
        },
        {
            "element_type": "air",
            "element_amount": 1000,
            "slate": { "item": 'bloodmagic:blankslate' },
            "ingredients": [{ "item": 'forbidden_arcanus:corrupti_dust' }, { "item": 'bloodmagic:fortune_anointment' }, { "item": 'elementalcraft:air_silk' }],
            "output": { "item": "elementalcraft:rune", "nbt": { "elementalcraft": { "rune": "elementalcraft:tano" } }, "count": 1 },
        },
        {
            "element_type": "earth",
            "element_amount": 1000,
            "slate": { "item": 'bloodmagic:blankslate' },
            "ingredients": [{ "item": 'emendatusenigmatica:aluminum_rod' }, { "item": 'bloodmagic:soulgempetty' }, { "item": 'bloodmagic:soulgempetty' }],
            "output": { "item": "elementalcraft:rune", "nbt": { "elementalcraft": { "rune": "elementalcraft:bombadil" } }, "count": 1 },
        },
        {
            "element_type": "water",
            "element_amount": 1000,
            "slate": { "item": 'bloodmagic:blankslate' },
            "ingredients": [
                { "item": 'forbidden_arcanus:mundabitur_dust' },
                { "item": 'bloodmagic:silk_touch_anointment' },
                { "item": 'bloodmagic:throwing_dagger' }],
            "output": { "item": "elementalcraft:rune", "nbt": { "elementalcraft": { "rune": "elementalcraft:zod" } }, "count": 1 },
        },
        {
            "element_type": "air",
            "element_amount": 1000,
            "slate": { "item": 'refinedstorage:raw_improved_processor' },
            "ingredients": [
                { "item": 'emendatusenigmatica:electrum_plate' },
                { "item": 'projectred-core:energized_silicon_chip' },
                { "item": 'emendatusenigmatica:electrum_plate' }],
            "output": { "item": 'refinedstorage:improved_processor' }
        },
        {
            "element_type": "air",
            "element_amount": 1000,
            "slate": { "item": 'refinedstorage:raw_basic_processor' },
            "ingredients": [
                { "item": 'emendatusenigmatica:iron_plate' },
                { "item": 'projectred-core:plate' },
                { "item": 'emendatusenigmatica:iron_plate' }],
            "output": { "item": 'refinedstorage:basic_processor' }
        },
        {
            "element_type": "air",
            "element_amount": 1000,
            "slate": { "item": 'refinedstorage:raw_advanced_processor' },
            "ingredients": [
                { "item": 'emendatusenigmatica:diamond_plate' },
                { "item": 'projectred-core:silicon_chip' },
                { "item": 'emendatusenigmatica:diamond_plate' }],
            "output": { "item": 'refinedstorage:advanced_processor' }
        },
        {
            "element_type": "earth",
            "element_amount": 2000,
            "slate": { "item":'ars_nouveau:wixie_charm'},
            "ingredients": [
                { "item":'kubejs:item_24' },
                { "item": 'botania:pixie_dust' },
                { "item": 'kubejs:fus' }],
            "output": { "item": 'thermal:upgrade_augment_1' }
        },

    ]


    /**
     * "elementalcraft:binding/groveshrine":{"recipe":{
     * "type":"elementalcraft:binding",
     * "element_type":"water",
     * "element_amount":2500,
     * "ingredients":[
     * {"item":"elementalcraft:shrinebase"},
     * {"item":"elementalcraft:watercrystal"},
     * {"tag":"elementalcraft:gems/crude_earth"},
     * {"tag":"minecraft:flowers"},
     * {"tag":"forge:seeds"},
     * {"tag":"forge:crops"}],
     * "output":{"item":"elementalcraft:groveshrine"}},
     * 
     * "inputs":[{"item":"elementalcraft:shrinebase"},{"item":"elementalcraft:watercrystal"},{"tag":"elementalcraft:gems/crude_earth"},{"tag":"minecraft:flowers"},{"tag":"forge:seeds"},{"tag":"forge:crops"}],"outputs":[{"item":"elementalcraft:groveshrine","count":1}]},
     */
    const binding_list = [
        {
            "ingredients": [
                { "tag": 'forge:ingots/silver' },
                { "tag": 'forge:ingots/tin' },
                { "tag": 'forge:ingots/tin' },
                { "tag": 'forge:ingots/tin' },
                { "tag": 'forge:dusts/glowstone' },
                { "tag": 'forge:dusts/glowstone' },

            ],
            "output": { "item": 'emendatusenigmatica:lumium_ingot', "count": 8 },
        },
        {
            "ingredients": [
                { "tag": 'forge:ingots/lead' },
                { "tag": 'forge:ingots/lead' },
                { "tag": 'forge:ingots/lead' },
                { "tag": 'forge:ingots/lead' },
                { "tag": 'forge:ingots/lead' },
                { "tag": 'forge:ender_pearls' },
                { "tag": 'forge:ender_pearls' },
                { "tag": 'forge:ingots/iridium' },


            ],
            "output": { "item": 'emendatusenigmatica:enderium_ingot', "count": 6 },
        },
        {
            "ingredients": [
                { "item": 'minecraft:redstone_block' },
                { "tag": 'forge:ingots/silicon_bronze' },
                { "tag": 'forge:ingots/silicon_bronze' },
                { "tag": 'forge:ingots/silver' },
                { "tag": 'forge:ingots/silver' },
                { "tag": 'forge:ingots/silver' },

            ],
            "output": { "item": 'emendatusenigmatica:signalum_ingot', "count": 6 },
        },
        {
            "ingredients": [
                { "item": 'tconstruct:seared_brick' },
                { "item": 'tconstruct:seared_brick' },
                { "item": 'tconstruct:seared_brick' },
                { "item": 'minecraft:iron_ingot' },
                { "item": 'minecraft:iron_ingot' },
                { "item": 'minecraft:iron_ingot' },
                { "item": 'bloodmagic:defaultcrystal' }

            ],
            "output": { "item": 'tconstruct:slimesteel_ingot', "count": 6 },
        },
        {
            "output": { "item": 'refinedstorage:raw_advanced_processor', "count": 1 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'emendatusenigmatica:enderium_nugget' },
                { "item": 'emendatusenigmatica:enderium_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "output": { "item": 'refinedstorage:raw_basic_processor', "count": 1 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'emendatusenigmatica:invar_nugget' },
                { "item": 'emendatusenigmatica:invar_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "output": { "item": 'refinedstorage:raw_improved_processor', "count": 1 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'emendatusenigmatica:lumium_nugget' },
                { "item": 'emendatusenigmatica:lumium_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "output": { "item": 'refinedstorage:creative_controller' },
            "ingredients": [
                { "item": 'xnet:controller' },
                { "item": 'emendatusenigmatica:enderium_block' },
                { "item": 'refinedstorage:quartz_enriched_iron_block' },
                { "item": 'psi:psidust_block' },
                { "item": 'kubejs:party_2_ingot' },
            ]
        },
        {
            "output": { "item": 'thermal:enderium_glass' },
            "ingredients": [
                { "item": 'thermal:enderium_dust' },
                { "item": 'thermal:obsidian_glass' },
                { "item": 'thermal:obsidian_glass' },
            ]
        },
        {
            "output": { "item": 'thermal_extra:vukaium_ingot' },
            "ingredients": [
                { "item": 'betternether:bone_mushroom' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'emendatusenigmatica:aluminum_ingot' },
            ]
        },
        {

            "output": { "item": 'thermal_extra:dragon_bronze_ingot' },
            "ingredients": [
                { "item": 'emendatusenigmatica:bronze_ingot' },
                { "item": 'betternether:agave' },
                { "item": 'betternether:agave' },
                { "item": 'betternether:agave' },
                { "item": 'betternether:agave' },
                { "item": 'betternether:agave' },
                { "item": 'betternether:agave' },
            ]
        },
        {

            "output": { "item": 'create:chromatic_compound', count: 3 },
            "ingredients": [
                { "item": 'betternether:cincinnasite' },
                { "item": 'betternether:cincinnasite' },
                { "item": 'betternether:cincinnasite' },
                { "item": 'bloodmagic:corrupted_dust' },
                { "item": 'forbidden_arcanus:xpetrified_orb' }
            ]
        },
        {

            "output": { "item": 'thermal_extra:nebulium_ingot', count: 2 },
            "ingredients": [
                { "item": 'bloodmagic:corrupted_dust' },
                { "item": 'bloodmagic:corrupted_dust' },
                { "item": 'bloodmagic:weakbloodshard' },
                { "item": 'bloodmagic:weakbloodshard' },
                { "item": 'bloodmagic:weakbloodshard' },
     
            ]
        }
    ]

    binding_list.forEach((i) => {
        event.custom({
            "type": "elementalcraft:binding",
            "element_type": "fire",
            "element_amount": 2500,
            "ingredients": i.ingredients,
            "output": i.output,
        });
    });




    event.custom({
        "type": "elementalcraft:grinding",
        "element_amount": 1000,
        "input": { "item": 'minecraft:end_stone' },
        "output": { "item": 'emendatusenigmatica:iridium_dust' },
    });

    event.custom({
        "type": "elementalcraft:grinding",
        "element_amount": 1000,
        "input": { "item": 'minecraft:obsidian' },
        "output": { "item": 'mekanism:dust_obsidian' },
    });

    ele_recipe_incription_list.forEach((i) => {
        event.custom({
            "type": "elementalcraft:inscription",
            "element_type": i.element_type,
            "element_amount": i.element_amount,
            "slate": i.slate,
            "ingredients": i.ingredients,
            "output": i.output
        })
    })





    ele_recipe_list.forEach((i) => {
        event.custom({
            "type": "elementalcraft:infusion",
            "output": { "item": i.output },
            "element_type": i.element_type,
            "element_amount": i.element_amount,
            "input": { "item": i.input },
        });
    })

    ele_recipe_pureinfusion_list.forEach((i) => {
        event.custom({
            "type": "elementalcraft:pureinfusion",
            "element_amount": i.element_amount,
            "ingredients": [
                { "item": i.input1 },
                { "item": i.input2[0] },
                { "item": i.input2[1] },
                { "item": i.input2[2] },
                { "item": i.input2[3] }
            ],
            "output": { "item": i.output },
        });
    });

});


